home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global gSong, gSlideSpeed, gPicCount
- set the movieRate of sprite 3 to 0
- updateStage()
- set gPicCount to 1
- songUpdate()
- startTimer()
- end
-
- on songUpdate
- if not soundBusy(1) then
- startNewsong()
- end if
- end
-
- on startNewsong
- global gSong, gSlideSpeed, gLastSong
- if gSong = 0 then
- set gSong to 5
- end if
- if gSlideSpeed = 0 then
- set gSlideSpeed to 2
- end if
- set randomSong to random(4)
- repeat while randomSong = gLastSong
- set randomSong to random(4)
- end repeat
- set songs to list("ONE.WAV", "FOUR.WAV", "THREE.WAV", "FOUR.WAV")
- if gSong = 5 then
- preLoadCast(the number of cast getAt(songs, randomSong))
- puppetSound(getAt(songs, randomSong))
- set gLastSong to randomSong
- else
- preLoadCast(the number of cast getAt(songs, gSong))
- puppetSound(getAt(songs, gSong))
- end if
- end
-
- on doSlide numSlides
- global gPicCount, gSlideSpeed
- repeat while the timer < (gSlideSpeed * 10 * 60)
- if the mouseDown then
- sound stop 1
- set the visible of sprite 3 to 0
- updateStage()
- play done
- end if
- end repeat
- if gPicCount = numSlides then
- set gPicCount to 0
- startTimer()
- go(the frame + 1)
- end if
- set the movieTime of sprite 3 to gPicCount * 60
- songUpdate()
- startTimer()
- put "gPicCount=", gPicCount
- set gPicCount to gPicCount + 1
- go(the frame)
- end
-